package com.stormragetech.teamwork.module.user.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;

import java.io.Serializable;
import java.util.Date;

/**
 * description: //TODO
 *
 * @author: Xue Bin
 * @version: 1.0.0-SNAPSHOT
 */
@Log4j2
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 155050708108189373L;

    private int id;
    private String username;
    private String password;
    private String salt;
    private String realname;
    private Date regDate;
    private int locked; // 0-未锁定 1-锁定

    public User(String username, String realname) {
        this.username = username;
        this.realname = realname;
    }

}
